<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/2
 * Time: 11:25
 */

namespace app\index\controller;
use app\common\model\ChangeLog;
use app\common\model\Faq;
use think\Controller;

class Wiki extends Controller
{

    //帮助文档
    public function helplist(){
        $key = request()->param('key');
        $Faq = new Faq();
        $map['keyword|info'] = $key;
        $list = $Faq->select();
        $this->assign('list',$list);
        return $this->fetch();
    }

    //更新记录
    public function changelog(){
        $ChangLog = new ChangeLog();
        $list = $ChangLog->order('id desc')->select();
        $this->assign('list',$list);
        return $this->fetch();
    }

}